package creational.abstractfactory.product.apple;

import creational.abstractfactory.product.Computer;
import creational.abstractfactory.product.Keyboard;

import java.util.Scanner;

public class AppleKeyboard implements Keyboard {
    @Override
    public void scanner(Computer computer) {
        System.out.println("苹果键盘输入");
        Scanner sc = new Scanner(System.in);
        String mes = sc.next();
        computer.work(mes);
    }
}
